<!DOCTYPE html>
<html><head>
    <meta charset="utf-8">
    <title>{include file="common/title"}</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__DATA__/admin/style/bootstrap.css" rel="stylesheet">
    <link href="__DATA__/admin/style/font-awesome.css" rel="stylesheet">
    <link href="__DATA__/admin/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__DATA__/admin/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__DATA__/admin/style/demo.css" rel="stylesheet">
    <link href="__DATA__/admin/style/typicons.css" rel="stylesheet">
    <link href="__DATA__/admin/style/animate.css" rel="stylesheet">

</head>
<body>
<!-- 头部 -->
{include file="common/top"}
<!-- /头部 -->

<div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page Sidebar -->
        {include file="common/left"}
        <!-- /Page Sidebar -->
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <a href="{:url('business/table/index')}">餐桌管理</a>
                    </li>
                    <li class="active">编辑餐桌</li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">

                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-blue">
                                <span class="widget-caption">编辑餐桌</span>
                            </div>
                            <div class="widget-body">
                                <div id="horizontal-form">
                                    <form class="form-horizontal" role="form" action="{:url('business/table/update')}" method="post">
                                        <input type="hidden" name="id" value="{$info.id}" />
                                        <div class="form-group">
                                            <label for="table_name" class="col-sm-2 control-label no-padding-right">餐桌名称</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="table_name" placeholder="" value="{$info.table_name}" name="table_name" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>
                                        <div class="form-group">
                                            <label for="table_num" class="col-sm-2 control-label no-padding-right">可就餐人数</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="table_num" placeholder="" value="{$info.table_num}" name="table_num" required="" type="number">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>
                                        <div class="form-group">
                                            <label for="table_tag" class="col-sm-2 control-label no-padding-right">标签</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="table_tag" placeholder="" value="{$info.table_tag}" name="table_tag" required="" type="text">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>
                                        <div class="form-group">
                                            <label for="table_classify" class="col-sm-2 control-label no-padding-right">桌台分类</label>
                                            <div class="col-sm-6">
                                                <select id="e1" style="width:100%;" name="table_classify">
                                                    <option value="{$info.table_classify}"    />{$info.table_classify}
                                                    {volist name="data" id="v"}
                                                    <option value="{$v.classify_name}" />{$v.classify_name}
                                                    {/volist}
                                                </select>
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>
                                        <div class="form-group">
                                            <label for="table_order" class="col-sm-2 control-label no-padding-right">顺序</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="table_order" value="{$info.table_order}" placeholder="" name="table_order" required="" type="number">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-default">保存信息</button>
                                                <button style="margin-left: 20px" onclick="history.back()" class="btn btn-info">返回</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
    </div>
</div>

<!--Basic Scripts-->
<script src="__DATA__/admin/style/jquery_002.js"></script>
<script src="__DATA__/admin/style/bootstrap.js"></script>
<script src="__DATA__/admin/style/jquery.js"></script>
<!--Beyond Scripts-->
<script src="__DATA__/admin/style/beyond.js"></script>

<script>
    $(function(){
        $('.canzhuo').css('display','block');
    });
</script>

</body></html>